xmlBlaster 2.2.0 client API

org.xmlBlaster.client
Interface I_ConnectionHandler

All Known Subinterfaces:
I_XmlBlasterAccess
All Known Implementing Classes:
XmlBlasterAccess

public interface I_ConnectionHandler

Access the connection handler to access connection status information or manipulate queued messages.

Author:
xmlBlaster@marcelruff.info

Method Summary
 I_Queue getQueue()
           
 ConnectionStateEnum getState()
          Get the connection state, usable for nice logging like this:
con.getState().toString()
 boolean isAlive()
           
 boolean isDead()
           
 boolean isPolling()
           
 

Method Detail

getQueue

I_Queue getQueue()
Returns:
The queue used to store tailback messages.

getState

ConnectionStateEnum getState()
Get the connection state, usable for nice logging like this:
con.getState().toString()

Returns:
"UNDEF", "ALIVE", "POLLING", "DEAD"

isAlive

boolean isAlive()
Returns:
true if the connection to xmlBlaster is operational

isPolling

boolean isPolling()
Returns:
true if we are polling for the server

isDead

boolean isDead()
Returns:
true if we have definitely lost the connection to xmlBlaster and gave up

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.