com.sentilla.net
Interface ByteMessage

All Superinterfaces:
Action
All Known Subinterfaces:
ByteReceiver, ByteSender
All Known Implementing Classes:
ByteReceiver, ByteSender

public interface ByteMessage
extends Action

A base class for ByteSender and ByteReceiver.

See Also:
Action

Field Summary
 
Fields inherited from interface com.sentilla.system.Action
DONE, ERROR, IDLE, PENDING
 
Method Summary
 int getPort()
          Returns the currently set port.
 long getTimestamp()
          Returns the message timestamp.
 ByteMessage setPort(int port)
          Sets the port for message transmissions.
 
Methods inherited from interface com.sentilla.system.Action
block, block, cancel, getActionState, isDone, submit
 

Method Detail

setPort

ByteMessage setPort(int port)
Sets the port for message transmissions.

Parameters:
port - the port bytes should be sent to
Returns:
returns this

getPort

int getPort()
Returns the currently set port.

Returns:
the integer port number

getTimestamp

long getTimestamp()
Returns the message timestamp.

Returns:
the long value timestamp


Copyright © 2007 Sentilla Corporation. All Rights Reserved.