2009-01-09 1.2.0

org.eclipse.soda.dk.transport.service
Interface ChannelStateService


public interface ChannelStateService

Since:
1.2
Version:
1.2.0

Field Summary
static int ACTIVE
          Define the active (int) constant.
static int CLOSING
          Define the closing (int) constant.
static int DEAD
          Define the dead (int) constant.
static int INACTIVE
          Define the inactive (int) constant.
static int KEEP_ALIVE
          Define the keep alive (int) constant.
static int RECONNECT
          Define the reconnect (int) constant.
static int WAIT_FOR_RESPONSE
          Define the wait for response (int) constant.
 
Method Summary
 void addSendData(SendDataService sendData)
          Add message to be sent with the specified data parameter.
 void decrementPendingResponseCount()
          Decrease pending response count.
 byte[] getBuffer()
          Gets the buffer (byte[]) value.
 ChannelService getChannel()
          Gets the channel (ChannelService) value.
 int getErrorCount()
          Gets the error count (int) value.
 int getInputMessageCount()
          Gets the input message count (int) value.
 SendDataService getLastSendData()
          Gets the last send data (SendDataService) value.
 ChannelStateService getNext()
          Gets the next (ChannelStateService) value.
 SendDataService getNextSendData()
          Gets the next send data (SendDataService) value.
 int getOffset()
          Gets the offset (int) value.
 int getPendingResponseCount()
          Gets the pending response count (int) value.
 ChannelStateService getPrevious()
          Gets the previous (ChannelStateService) value.
 int getSentMessageCount()
          Gets the sent message count (int) value.
 int getState()
          Gets the state (int) value.
 long getTimeout()
          Gets the timeout (long) value.
 void incrementPendingResponseCount()
          Increase pending response count.
 int incrementRetryCount()
          Update retry count and return the int result.
 void setBuffer(byte[] newBuffer)
          Sets the buffer value.
 void setErrorCount(int errorCount)
          Sets the error count value.
 void setInputMessageCount(int inputMessageCount)
          Sets the input message count value.
 void setLastSendData(SendDataService sendData)
          Sets the last send data value.
 void setNext(ChannelStateService next)
          Sets the next value.
 void setOffset(int offset)
          Sets the offset value.
 void setPrevious(ChannelStateService previous)
          Sets the previous value.
 void setRetryCount(int i)
          Sets the retry count value.
 void setSentMessageCount(int sentMessageCount)
          Sets the sent message count value.
 void setState(int dead)
          Sets the state value.
 void setTimeout(long time)
          Sets the timeout value.
 void updateErrorCount()
          Update error count.
 int updateInputMessageCount()
          Update input message count and return the int result.
 void updateSentMessageCount()
          Update sent message count.
 

Field Detail

ACTIVE

static final int ACTIVE
Define the active (int) constant.

See Also:
Constant Field Values

KEEP_ALIVE

static final int KEEP_ALIVE
Define the keep alive (int) constant.

See Also:
Constant Field Values

INACTIVE

static final int INACTIVE
Define the inactive (int) constant.

See Also:
Constant Field Values

WAIT_FOR_RESPONSE

static final int WAIT_FOR_RESPONSE
Define the wait for response (int) constant.

See Also:
Constant Field Values

RECONNECT

static final int RECONNECT
Define the reconnect (int) constant.

See Also:
Constant Field Values

CLOSING

static final int CLOSING
Define the closing (int) constant.

See Also:
Constant Field Values

DEAD

static final int DEAD
Define the dead (int) constant.

See Also:
Constant Field Values
Method Detail

addSendData

void addSendData(SendDataService sendData)
Add message to be sent with the specified data parameter.

Parameters:
sendData - The send data (SendDataService) parameter.
See Also:
getLastSendData(), getNextSendData(), setLastSendData(SendDataService)

decrementPendingResponseCount

void decrementPendingResponseCount()
Decrease pending response count.

See Also:
getPendingResponseCount(), incrementPendingResponseCount()

getBuffer

byte[] getBuffer()
Gets the buffer (byte[]) value.

Returns:
The buffer (byte[]) value.
See Also:
setBuffer(byte[])

getChannel

ChannelService getChannel()
Gets the channel (ChannelService) value.

Returns:
The channel (ChannelService) value.

getErrorCount

int getErrorCount()
Gets the error count (int) value.

Returns:
The error count (int) value.
See Also:
setErrorCount(int), updateErrorCount()

getInputMessageCount

int getInputMessageCount()
Gets the input message count (int) value.

Returns:
The input message count (int) value.
See Also:
setInputMessageCount(int), updateInputMessageCount()

getLastSendData

SendDataService getLastSendData()
Gets the last send data (SendDataService) value.

Returns:
The last send data (SendDataService) value.
See Also:
setLastSendData(SendDataService)

getNext

ChannelStateService getNext()
Gets the next (ChannelStateService) value.

Returns:
The next (ChannelStateService) value.
See Also:
setNext(ChannelStateService)

getNextSendData

SendDataService getNextSendData()
Gets the next send data (SendDataService) value.

Returns:
The next send data (SendDataService) value.

getOffset

int getOffset()
Gets the offset (int) value.

Returns:
The offset (int) value.
See Also:
setOffset(int)

getPendingResponseCount

int getPendingResponseCount()
Gets the pending response count (int) value.

Returns:
The pending response count (int) value.
See Also:
decrementPendingResponseCount(), incrementPendingResponseCount()

getPrevious

ChannelStateService getPrevious()
Gets the previous (ChannelStateService) value.

Returns:
The previous (ChannelStateService) value.
See Also:
setPrevious(ChannelStateService)

getSentMessageCount

int getSentMessageCount()
Gets the sent message count (int) value.

Returns:
The sent message count (int) value.
See Also:
setSentMessageCount(int), updateSentMessageCount()

getState

int getState()
Gets the state (int) value.

Returns:
The state (int) value.
See Also:
setState(int)

getTimeout

long getTimeout()
Gets the timeout (long) value.

Returns:
The timeout (long) value.
See Also:
setTimeout(long)

incrementPendingResponseCount

void incrementPendingResponseCount()
Increase pending response count.

See Also:
decrementPendingResponseCount(), getPendingResponseCount()

incrementRetryCount

int incrementRetryCount()
Update retry count and return the int result.

Returns:
Results of the update retry count (int) value.
See Also:
setRetryCount(int)

setBuffer

void setBuffer(byte[] newBuffer)
Sets the buffer value.

Parameters:
newBuffer - The new buffer (byte[]) parameter.
See Also:
getBuffer()

setErrorCount

void setErrorCount(int errorCount)
Sets the error count value.

Parameters:
errorCount - The error count (int) parameter.
See Also:
getErrorCount(), updateErrorCount()

setInputMessageCount

void setInputMessageCount(int inputMessageCount)
Sets the input message count value.

Parameters:
inputMessageCount - The input message count (int) parameter.
See Also:
getInputMessageCount(), updateInputMessageCount()

setLastSendData

void setLastSendData(SendDataService sendData)
Sets the last send data value.

Parameters:
sendData - The send data (SendDataService) parameter.
See Also:
getLastSendData()

setNext

void setNext(ChannelStateService next)
Sets the next value.

Parameters:
next - The next (ChannelStateService) parameter.
See Also:
getNext()

setOffset

void setOffset(int offset)
Sets the offset value.

Parameters:
offset - The offset (int) parameter.
See Also:
getOffset()

setPrevious

void setPrevious(ChannelStateService previous)
Sets the previous value.

Parameters:
previous - The previous (ChannelStateService) parameter.
See Also:
getPrevious()

setRetryCount

void setRetryCount(int i)
Sets the retry count value.

Parameters:
i - The i (int) parameter.
See Also:
incrementRetryCount()

setSentMessageCount

void setSentMessageCount(int sentMessageCount)
Sets the sent message count value.

Parameters:
sentMessageCount - The sent message count (int) parameter.
See Also:
getSentMessageCount(), updateSentMessageCount()

setState

void setState(int dead)
Sets the state value.

Parameters:
dead - The dead (int) parameter.
See Also:
getState()

setTimeout

void setTimeout(long time)
Sets the timeout value.

Parameters:
time - The time (long) parameter.
See Also:
getTimeout()

updateErrorCount

void updateErrorCount()
Update error count.

See Also:
getErrorCount(), setErrorCount(int)

updateInputMessageCount

int updateInputMessageCount()
Update input message count and return the int result.

Returns:
Results of the update input message count (int) value.
See Also:
getInputMessageCount(), setInputMessageCount(int)

updateSentMessageCount

void updateSentMessageCount()
Update sent message count.

See Also:
getSentMessageCount(), setSentMessageCount(int)

2009-01-09 1.2.0

Copyright (c) 2009 IBM. See license in Legal section.