@Beta public final class ConnectionMessageReceivedEvent extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ConnectionId |
connectionId |
private int |
responseTo |
private int |
size |
Constructor and Description |
---|
ConnectionMessageReceivedEvent(ConnectionId connectionId,
int responseTo,
int size)
Constructs a new instance of the event.
|
Modifier and Type | Method and Description |
---|---|
ConnectionId |
getConnectionId()
Gets the identifier for this connection.
|
int |
getResponseTo()
The responseTo identifier of the message.
|
int |
getSize()
Gets the size of the received message.
|
java.lang.String |
toString() |
private final int responseTo
private final int size
private final ConnectionId connectionId
public ConnectionMessageReceivedEvent(ConnectionId connectionId, int responseTo, int size)
connectionId
- the connection idresponseTo
- the request id that this message is in response tosize
- the size of the received messagepublic int getResponseTo()
public int getSize()
public ConnectionId getConnectionId()
public java.lang.String toString()
toString
in class java.lang.Object