Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.protocol
Interface RequestReceiver

All Superinterfaces:
Receiver
All Known Subinterfaces:
RequestReceiverSupport
All Known Implementing Classes:
CallbackProtocolListener, ChatProtocolsListener, ConfServerProtocolListener, EmailProtocolListener, EspEmailProtocolListener, ExternalServiceProtocolListener, InteractionServerProtocolListener, QueueRequestReceiver, RequestReceivingBrokerService, ServerChannel, UniversalContactServerProtocolListener, UrsCustomProtocolListener

public interface RequestReceiver
extends Receiver


Field Summary
 
Fields inherited from interface com.genesyslab.platform.commons.protocol.Receiver
DEF_INPUT_SIZE
 
Method Summary
 RequestContext receiveRequest()
          Receives request from the client.
 RequestContext receiveRequest(long timeout)
          Receives request from the client.
 
Methods inherited from interface com.genesyslab.platform.commons.protocol.Receiver
clearInput, getInputSize, releaseReceivers, setInputSize
 

Method Detail

receiveRequest

RequestContext receiveRequest()
                              throws java.lang.InterruptedException,
                                     java.lang.IllegalStateException
Receives request from the client. Depending on implementation this method will or won't block for some or infinite time.

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

RequestContext receiveRequest(long timeout)
                              throws java.lang.InterruptedException,
                                     java.lang.IllegalStateException
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.

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.