Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Class QueueRequestReceiver

java.lang.Object
  extended by com.genesyslab.platform.commons.protocol.AbstractQueueReceiver<RequestContext>
      extended by com.genesyslab.platform.commons.protocol.QueueRequestReceiver
All Implemented Interfaces:
ChannelListener, Listener, Receiver, ReceiverSupport, RequestReceiver, RequestReceiverSupport

public class QueueRequestReceiver
extends AbstractQueueReceiver<RequestContext>
implements RequestReceiverSupport


Field Summary
 
Fields inherited from interface com.genesyslab.platform.commons.protocol.Receiver
DEF_INPUT_SIZE
 
Constructor Summary
QueueRequestReceiver(int queueSize)
           
QueueRequestReceiver(int queueSize, boolean growQueue)
           
 
Method Summary
protected  RequestContext getFake()
           
 void processRequest(RequestContext request)
          Deprecated. Use processMessage() instead
 RequestContext receiveRequest()
          Deprecated. Use receive() instead
 RequestContext receiveRequest(long timeout)
          Deprecated. Use receive() instead
 
Methods inherited from class com.genesyslab.platform.commons.protocol.AbstractQueueReceiver
clearInput, getEnqueTimeout, getInputSize, getMaxInputSize, getQueueSupport, onChannelClosed, onChannelError, onChannelOpened, processMessage, receive, receive, releaseReceivers, setEnqueTimeout, setInputSize, setMaxInputSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.Receiver
clearInput, getInputSize, releaseReceivers, setInputSize
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.ChannelListener
onChannelClosed, onChannelError, onChannelOpened
 

Constructor Detail

QueueRequestReceiver

public QueueRequestReceiver(int queueSize)

QueueRequestReceiver

public QueueRequestReceiver(int queueSize,
                            boolean growQueue)
Method Detail

getFake

protected RequestContext getFake()
Specified by:
getFake in class AbstractQueueReceiver<RequestContext>

processRequest

@Deprecated
public void processRequest(RequestContext request)
Deprecated. Use processMessage() instead

Specified by:
processRequest in interface RequestReceiverSupport
Parameters:
request - request to process

receiveRequest

@Deprecated
public RequestContext receiveRequest()
                              throws java.lang.InterruptedException,
                                     java.lang.IllegalStateException
Deprecated. Use receive() instead

Description copied from interface: RequestReceiver
Receives request from the client. Depending on implementation this method will or won't block for some or infinite time.

Specified by:
receiveRequest in interface RequestReceiver
Returns:
Message from the channel or null if the channel is "empty"
Throws:
java.lang.InterruptedException - if thread is interrupted during this method execution
java.lang.IllegalStateException - if channel is not in appropriate state to call the method

receiveRequest

@Deprecated
public RequestContext receiveRequest(long timeout)
                              throws java.lang.InterruptedException,
                                     java.lang.IllegalStateException
Deprecated. Use receive() instead

Description copied from interface: RequestReceiver
Receives request from the client. Depending on timeout value this method will or won't block for some time. See Channel description for timeout values meaning.

Specified by:
receiveRequest in interface RequestReceiver
Parameters:
timeout - timeout to waitResponse for message
Returns:
Message from the channel or null if the channel is "empty"
Throws:
java.lang.InterruptedException - if thread is interrupted during this method execution
ChannelNotOpenedException - if channel is not in appropriate state to call the method
java.lang.IllegalStateException

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.