Package com.apama.epl.plugin
Class Channel
- java.lang.Object
-
- com.apama.epl.plugin.Channel
-
public class Channel extends java.lang.ObjectClass that holds a channel reference and can be passed across the correlator EPL/Java plugin boundary. This class must only be used from an EPL Java Plugin (not from JMon).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanempty()Returns true iff this wraps an empty context i.e.booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()Returns a string representation of the channel instance.
-
-
-
Constructor Detail
-
Channel
public Channel()
The default constructor. Corresponds to "new Channel" in EPL, creating a Channel that wraps an empty context.
-
Channel
public Channel(java.lang.String name)
Create a Channel wrapping a channel name
-
Channel
public Channel(Context ctx)
Create a Channel that wraps a Context
-
Channel
public Channel(Channel other)
Copy constructor
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representation of the channel instance. This method produces an identical string to the one produced in MonitorScript.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
empty
public boolean empty()
Returns true iff this wraps an empty context i.e. sending to this won't do anything
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException- See Also:
Object.clone()
-
-