Package io.getstream.core.faye
Class Channel
- java.lang.Object
-
- io.getstream.core.faye.Channel
-
public class Channel extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONNECT
static java.lang.String
DISCONNECT
static java.lang.String
HANDSHAKE
static java.lang.String
SUBSCRIBE
static java.lang.String
UNSUBSCRIBE
-
Constructor Summary
Constructors Constructor Description Channel(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(java.lang.String event, EventListener<Message> listener)
boolean
equals(java.lang.Object o)
static java.util.List<java.lang.String>
expand(java.lang.String name)
java.lang.String
getName()
int
hashCode()
boolean
hasListeners(java.lang.String event)
static java.lang.Boolean
isMeta(java.lang.String name)
static java.lang.Boolean
isService(java.lang.String name)
static java.lang.Boolean
isSubscribable(java.lang.String name)
static boolean
isValid(java.lang.String name)
static java.util.List<java.lang.String>
parse(java.lang.String name)
java.lang.String
toString()
void
trigger(java.lang.String event, Message message)
void
unbind(java.lang.String event, EventListener<Message> listener)
static java.lang.String
unparse(java.util.List<java.lang.String> segments)
-
-
-
Field Detail
-
HANDSHAKE
public static final java.lang.String HANDSHAKE
- See Also:
- Constant Field Values
-
CONNECT
public static final java.lang.String CONNECT
- See Also:
- Constant Field Values
-
DISCONNECT
public static final java.lang.String DISCONNECT
- See Also:
- Constant Field Values
-
SUBSCRIBE
public static final java.lang.String SUBSCRIBE
- See Also:
- Constant Field Values
-
UNSUBSCRIBE
public static final java.lang.String UNSUBSCRIBE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
-
bind
public void bind(java.lang.String event, EventListener<Message> listener)
-
unbind
public void unbind(java.lang.String event, EventListener<Message> listener)
-
trigger
public void trigger(java.lang.String event, Message message)
-
hasListeners
public boolean hasListeners(java.lang.String event) throws java.lang.Exception
- Throws:
java.lang.Exception
-
expand
public static java.util.List<java.lang.String> expand(java.lang.String name)
-
isValid
public static boolean isValid(java.lang.String name)
-
parse
public static java.util.List<java.lang.String> parse(java.lang.String name)
-
unparse
public static java.lang.String unparse(java.util.List<java.lang.String> segments)
-
isMeta
public static java.lang.Boolean isMeta(java.lang.String name)
-
isService
public static java.lang.Boolean isService(java.lang.String name)
-
isSubscribable
public static java.lang.Boolean isSubscribable(java.lang.String name)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-