com.genesyslab.platform.commons.protocol
Class QueueRequestReceiver
java.lang.Object
com.genesyslab.platform.commons.protocol.AbstractQueueReceiver
com.genesyslab.platform.commons.protocol.QueueRequestReceiver
- All Implemented Interfaces:
- ChannelListener, Listener, Receiver, ReceiverSupport, RequestReceiver, RequestReceiverSupport
- public class QueueRequestReceiver
- extends AbstractQueueReceiver
- implements RequestReceiverSupport
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueRequestReceiver
public QueueRequestReceiver(int queueSize)
QueueRequestReceiver
public QueueRequestReceiver(int queueSize,
boolean growQueue)
processRequest
public void processRequest(RequestContext request)
- Specified by:
processRequest
in interface RequestReceiverSupport
receiveRequest
public RequestContext receiveRequest()
throws java.lang.InterruptedException,
java.lang.IllegalStateException
- Description copied from interface:
RequestReceiver
- Receive 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
public RequestContext receiveRequest(long timeout)
throws java.lang.InterruptedException,
java.lang.IllegalStateException
- Description copied from interface:
RequestReceiver
- Receive 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
java.lang.IllegalStateException
- if channel is not in appropriate state
to call the method
Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.