com.cosylab.epics.caj.impl
Interface Request

All Known Implementing Classes:
AbstractCARequest, AccessRightsRequest, BeaconRequest, ClearChannelRequest, ClearChannelRequest, CreateChannelFailedRequest, CreateChannelRequest, CreateChannelRequest, EchoRequest, EchoRequest, EventAddRequest, EventAddRequest, EventCancelRequest, EventCancelRequest, EventsOffRequest, EventsOnRequest, ExceptionRequest, HostNameRequest, ReadNotifyRequest, ReadNotifyRequest, RepeaterRegisterRequest, SearchFailedRequest, SearchRequest, SearchRequest, SubscriptionUpdateRequest, UserNameRequest, VersionRequest, WriteNotifyRequest, WriteNotifyRequest, WriteRequest

public interface Request

Interface defining request to be sent via Transport.

Version:
$id$
Author:
Matej Sekoranja

Field Summary
static short DEFAULT_USER_PRIORITY
          Default (recommended) user message priority.
static short MAX_USER_PRIORITY
          Maximum user message priority.
static short MIN_USER_PRIORITY
          Minimum user message priority.
static short SEND_IMMEDIATELY_PRIORITY
          Highest priority, message is sent immediately.
 
Method Summary
 byte getPriority()
          Get request priority, higher view higher priority.
 ByteBuffer getRequestMessage()
          Get request message to be sent.
 void submit()
          Submit this request message to the corresponding transport.
 

Field Detail

SEND_IMMEDIATELY_PRIORITY

static final short SEND_IMMEDIATELY_PRIORITY
Highest priority, message is sent immediately.

See Also:
Constant Field Values

MAX_USER_PRIORITY

static final short MAX_USER_PRIORITY
Maximum user message priority.

See Also:
Constant Field Values

MIN_USER_PRIORITY

static final short MIN_USER_PRIORITY
Minimum user message priority.

See Also:
Constant Field Values

DEFAULT_USER_PRIORITY

static final short DEFAULT_USER_PRIORITY
Default (recommended) user message priority.

See Also:
Constant Field Values
Method Detail

getPriority

byte getPriority()
Get request priority, higher view higher priority.

Returns:
request priority.

getRequestMessage

ByteBuffer getRequestMessage()
Get request message to be sent.

Returns:
request message to be sent.

submit

void submit()
            throws IOException
Submit this request message to the corresponding transport.

Throws:
IOException


Copyright © 2004-2013 Cosylab. All Rights Reserved.