T
- typepublic class RemoteEvent<T> extends Object
Constructor and Description |
---|
RemoteEvent(SocketAddress localAddr,
SocketAddress remoteAddr,
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.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
public RemoteEvent(SocketAddress localAddr, SocketAddress remoteAddr, long seq, T event)
localAddr
- the local socket addressremoteAddr
- the remote socket addressseq
- 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 © 2016 The Apache Software Foundation. All rights reserved.