EventReceiver

Overview

EventReceiver class is a callback events receiver implementation for Java.

Location

 

constructor (Message, ClientChannel, String, String)

Creates EventReceiver with given name, service, channel and message.

 

constructor(aMessage: Message; aChannel: ClientChannel; aServiceName: String; aReceiverName: String)

 

EventReceiver(Message aMessage, ClientChannel aChannel, String aServiceName, String aReceiverName)

Parameters:

  • aMessage: Given message.
  • aChannel: Given channel.
  • aServiceName: Given service name.
  • aReceiverName: Given name.

constructor (Proxy, String)

Creates EventReceiver with given name and proxy.

 

constructor(aProxy: Proxy; aReceiverName: String)

 

EventReceiver(Proxy aProxy, String aReceiverName)

Parameters:

  • aProxy: Given proxy
  • aReceiverName: Given name.

constructor (String)

Creates EventReceiver with given name.

 

constructor(aReceiverName: String)

 

EventReceiver(String aReceiverName)

Parameters:

  • aReceiverName: Given name.

addListener

Adds event listener.

 

method addListener(aEvent: IEvents): Boolean

 

Boolean addListener(IEvents aEvent)

Parameters:

  • aEvent: Given listener.

AdjustPollInterval

 

property AdjustPollInterval: Boolean read write;

 

Boolean AdjustPollInterval { __get; __set; }

Channel

 

property Channel: ClientChannel read write;

 

ClientChannel Channel { __get; __set; }

IsActive

 

property IsActive: Boolean read;

 

Boolean IsActive { __get; }

MaxPollInterval

 

property MaxPollInterval: Integer read write;

 

Integer MaxPollInterval { __get; __set; }

Message

 

property Message: Message read write;

 

Message Message { __get; __set; }

MessagesPerPoll

 

property MessagesPerPoll: Integer read write;

 

Integer MessagesPerPoll { __get; __set; }

MinPollInterval

 

property MinPollInterval: Integer read write;

 

Integer MinPollInterval { __get; __set; }

pause

Pause receiver.

 

method pause

 

void pause()

PollInterval

 

property PollInterval: Integer read write;

 

Integer PollInterval { __get; __set; }

PollIntervalCallback

 

property PollIntervalCallback: EventReceiver.IPollIntervalCallback read write;

 

EventReceiver.IPollIntervalCallback PollIntervalCallback { __get; __set; }

removeListener

Removes listener.

 

method removeListener(aEvent: IEvents): Boolean

 

Boolean removeListener(IEvents aEvent)

Parameters:

  • aEvent: Given listener.

resume

Resume receiver.

 

method resume

 

void resume()

ServiceName

 

property ServiceName: String read write;

 

String ServiceName { __get; __set; }

start

Starts receiver.

 

method start

 

void start()

stop

Stops receiver.

 

method stop

 

void stop()

 

AdjustPollInterval

 

property AdjustPollInterval: Boolean read write;

 

Boolean AdjustPollInterval { __get; __set; }

Channel

 

property Channel: ClientChannel read write;

 

ClientChannel Channel { __get; __set; }

IsActive

 

property IsActive: Boolean read;

 

Boolean IsActive { __get; }

MaxPollInterval

 

property MaxPollInterval: Integer read write;

 

Integer MaxPollInterval { __get; __set; }

Message

 

property Message: Message read write;

 

Message Message { __get; __set; }

MessagesPerPoll

 

property MessagesPerPoll: Integer read write;

 

Integer MessagesPerPoll { __get; __set; }

MinPollInterval

 

property MinPollInterval: Integer read write;

 

Integer MinPollInterval { __get; __set; }

PollInterval

 

property PollInterval: Integer read write;

 

Integer PollInterval { __get; __set; }

PollIntervalCallback

 

property PollIntervalCallback: EventReceiver.IPollIntervalCallback read write;

 

EventReceiver.IPollIntervalCallback PollIntervalCallback { __get; __set; }

ServiceName

 

property ServiceName: String read write;

 

String ServiceName { __get; __set; }

 

constructor (Message, ClientChannel, String, String)

Creates EventReceiver with given name, service, channel and message.

 

constructor(aMessage: Message; aChannel: ClientChannel; aServiceName: String; aReceiverName: String)

 

EventReceiver(Message aMessage, ClientChannel aChannel, String aServiceName, String aReceiverName)

Parameters:

  • aMessage: Given message.
  • aChannel: Given channel.
  • aServiceName: Given service name.
  • aReceiverName: Given name.

constructor (Proxy, String)

Creates EventReceiver with given name and proxy.

 

constructor(aProxy: Proxy; aReceiverName: String)

 

EventReceiver(Proxy aProxy, String aReceiverName)

Parameters:

  • aProxy: Given proxy
  • aReceiverName: Given name.

constructor (String)

Creates EventReceiver with given name.

 

constructor(aReceiverName: String)

 

EventReceiver(String aReceiverName)

Parameters:

  • aReceiverName: Given name.

addListener

Adds event listener.

 

method addListener(aEvent: IEvents): Boolean

 

Boolean addListener(IEvents aEvent)

Parameters:

  • aEvent: Given listener.

pause

Pause receiver.

 

method pause

 

void pause()

removeListener

Removes listener.

 

method removeListener(aEvent: IEvents): Boolean

 

Boolean removeListener(IEvents aEvent)

Parameters:

  • aEvent: Given listener.

resume

Resume receiver.

 

method resume

 

void resume()

start

Starts receiver.

 

method start

 

void start()

stop

Stops receiver.

 

method stop

 

void stop()

See Also