public class Notification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
RECEPTION |
static boolean |
SEND |
Constructor and Description |
---|
Notification(boolean isReception,
java.net.InetSocketAddress address,
byte[] buffer) |
Notification(boolean isReception,
java.net.InetSocketAddress address,
byte[] buffer,
long timeMillis) |
Modifier and Type | Method and Description |
---|---|
java.net.InetSocketAddress |
getAddress() |
byte[] |
getBuffer() |
DeliveryListener |
getDeliveryListener() |
java.lang.Exception |
getErrorObject() |
DeliveryListener.ResultEnum |
getOperationResult() |
long |
getTimeMillis() |
boolean |
isReception() |
boolean |
isSend() |
void |
setAddress(java.net.InetSocketAddress address) |
void |
setBuffer(byte[] buffer) |
void |
setDeliveryListener(DeliveryListener deliveryListener) |
void |
setErrorObject(java.lang.Exception errorObject) |
void |
setOperationResult(DeliveryListener.ResultEnum operationResult) |
void |
setReception(boolean value) |
void |
setSend(boolean value) |
void |
setTimeMillis(long timeMillis) |
public static final boolean RECEPTION
public static final boolean SEND
public Notification(boolean isReception, java.net.InetSocketAddress address, byte[] buffer)
isReception
- address
- buffer
- public Notification(boolean isReception, java.net.InetSocketAddress address, byte[] buffer, long timeMillis)
reception
- socketAddress
- recBytes
- currentTimeMillis
- public byte[] getBuffer()
public void setBuffer(byte[] buffer)
buffer
- the buffer to setpublic java.net.InetSocketAddress getAddress()
public void setAddress(java.net.InetSocketAddress address)
address
- the address to setpublic boolean isReception()
public void setReception(boolean value)
reception
- the reception to setpublic boolean isSend()
public void setSend(boolean value)
public long getTimeMillis()
public void setTimeMillis(long timeMillis)
timeMillis
- the timeMillis to setpublic DeliveryListener.ResultEnum getOperationResult()
public void setOperationResult(DeliveryListener.ResultEnum operationResult)
operationResult
- the operationResult to setpublic java.lang.Exception getErrorObject()
public void setErrorObject(java.lang.Exception errorObject)
errorObject
- the errorObject to setpublic DeliveryListener getDeliveryListener()
public void setDeliveryListener(DeliveryListener deliveryListener)
deliveryListener
- the deliveryListener to setCopyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.