public class TransportEvent extends Object
Constructor and Description |
---|
TransportEvent(byte[] data,
Link<byte[]> link)
Constructs the transport even object using link to.
|
TransportEvent(byte[] data,
SocketAddress localAddr,
SocketAddress remoteAddr)
Constructs an object event.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the data.
|
Link<byte[]> |
getLink()
Returns the link associated with the event.
|
SocketAddress |
getLocalAddress()
Gets the local socket address.
|
SocketAddress |
getRemoteAddress()
Gets the remote socket address.
|
String |
toString() |
public TransportEvent(byte[] data, SocketAddress localAddr, SocketAddress remoteAddr)
data
- the datalocalAddr
- the local socket addressremoteAddr
- the remote socket addresspublic TransportEvent(byte[] data, Link<byte[]> link)
data
- link
- public byte[] getData()
public Link<byte[]> getLink()
public SocketAddress getLocalAddress()
public SocketAddress getRemoteAddress()
Copyright © 2017 The Apache Software Foundation. All rights reserved.