T - typepublic class RemoteEvent<T> extends Object
| Constructor and Description |
|---|
RemoteEvent(SocketAddress localAddr,
SocketAddress remoteAddr,
String src,
String sink,
long seq,
T event)
Constructs a remote event
|
| Modifier and Type | Method and Description |
|---|---|
T |
getEvent()
Gets the actual event
|
long |
getSeq()
Gets the sequence number
|
String |
getSink()
Gets the sink
|
String |
getSource()
Gets the source
|
SocketAddress |
localAddress()
Gets the local socket address
|
SocketAddress |
remoteAddress()
Gets the remote socket address
|
void |
setLocalAddress(SocketAddress addr)
Sets the local socket address
|
void |
setRemoteAddress(SocketAddress addr)
Sets the remote socket address
|
void |
setSink(String name)
Sets the sink
|
void |
setSource(String name)
Sets the source
|
String |
toString()
Returns a string representation of this object
|
public RemoteEvent(SocketAddress localAddr, SocketAddress remoteAddr, String src, String sink, long seq, T event)
localAddr - the local socket addressremoteAddr - the remote socket addresssrc - the sourcesink - the remote sinkseq - the sequence numberevent - the eventpublic SocketAddress localAddress()
public SocketAddress remoteAddress()
public long getSeq()
public void setLocalAddress(SocketAddress addr)
addr - the local socket addresspublic void setRemoteAddress(SocketAddress addr)
addr - the remote socket addressCopyright © 2015 The Apache Software Foundation. All rights reserved.