Openwings API Documentation (v1.1)

net.openwings.connector.asynchronous
Class AsynchronousConnector

java.lang.Object
  extended bynet.openwings.connector.Connector
      extended bynet.openwings.connector.asynchronous.AsynchronousConnector
All Implemented Interfaces:
java.io.Serializable

public abstract class AsynchronousConnector
extends Connector
implements java.io.Serializable

This class contains the proxies for an asynchronous connector. This contains a SubscriberProxy and PublisherProxy, which are actually a ReceiverProxy and a SenderProxy of the superclass Connector. The implementation of the SubscriberProxy and PublisherProxy for this connector must contain non-blocking methods.

See Also:
SubscriberProxy, PublisherProxy, Serialized Form

Field Summary
 
Fields inherited from class net.openwings.connector.Connector
attributes, receiverProxy, senderProxy
 
Constructor Summary
AsynchronousConnector()
          Default constructor
AsynchronousConnector(ProtocolAttributes attributes)
          This constructor allows the protocol-specific attributes to be passed
 
Method Summary
 PublisherProxy getPublisherProxy()
          This method returns the senderProxy of the superclass Connector casted to a PublisherProxy.
 SubscriberProxy getSubscriberProxy()
          This method returns the receiverProxy of the superclass Connector casted to a SubscriberProxy
 
Methods inherited from class net.openwings.connector.Connector
getProtocolAttributes, getProtocolAttributesClass, getReceiverProxy, getSenderProxy, loadProxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousConnector

public AsynchronousConnector()
Default constructor


AsynchronousConnector

public AsynchronousConnector(ProtocolAttributes attributes)
This constructor allows the protocol-specific attributes to be passed

Parameters:
attributes - protocol-specific attributes for this connection
Method Detail

getSubscriberProxy

public SubscriberProxy getSubscriberProxy()
This method returns the receiverProxy of the superclass Connector casted to a SubscriberProxy

Returns:
the receiverProxy of the superclass Connector casted to a SubscriberProxy
See Also:
Connector.getReceiverProxy()

getPublisherProxy

public PublisherProxy getPublisherProxy()
This method returns the senderProxy of the superclass Connector casted to a PublisherProxy.

Returns:
the senderProxy of the superclass Connector casted to a PublisherProxy
See Also:
Connector.getSenderProxy()

Openwings API Documentation (v1.1)