org.otfeed.command
Class ListExchangesCommand

java.lang.Object
  extended by org.otfeed.command.ListExchangesCommand
All Implemented Interfaces:
ICommand

public final class ListExchangesCommand
extends java.lang.Object
implements ICommand

Retrieves list of supported exchanges.

This command allows to retrieve a complete list of exchanges supported by the server.

Generates exchange events.

Unless property description says otherwise, all properties are mandatory.


Constructor Summary
ListExchangesCommand()
          Default constructor.
ListExchangesCommand(IDataDelegate<OTExchange> dataDelegate)
          Creates new list exchanges command, initializing all its properties.
 
Method Summary
 ICompletionDelegate getCompletionDelegate()
          Option delegate to watch stream completion event.
 IDataDelegate<OTExchange> getDataDelegate()
          Delegate to receive OTExchange events.
 void setCompletionDelegate(ICompletionDelegate val)
          Sets completion delegate.
 void setDataDelegate(IDataDelegate<OTExchange> dataDelegate)
          Sets delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListExchangesCommand

public ListExchangesCommand(IDataDelegate<OTExchange> dataDelegate)
Creates new list exchanges command, initializing all its properties.

Parameters:
dataDelegate - delegate.

ListExchangesCommand

public ListExchangesCommand()
Default constructor. DataDelegate property must be initiaized before this command object is used.

Method Detail

getDataDelegate

public IDataDelegate<OTExchange> getDataDelegate()
Delegate to receive OTExchange events.

Returns:
delegate.

setDataDelegate

public void setDataDelegate(IDataDelegate<OTExchange> dataDelegate)
Sets delegate.

Parameters:
dataDelegate - delegate.

getCompletionDelegate

public ICompletionDelegate getCompletionDelegate()
Option delegate to watch stream completion event.

Returns:
delegate.

setCompletionDelegate

public void setCompletionDelegate(ICompletionDelegate val)
Sets completion delegate.

Parameters:
val - delegate.


Copyright © 2007 Mike Kroutikov. All Rights Reserved.