org.robokind.api.messaging
Interface RecordBlockingReceiver<T>

Type Parameters:
T - type of Record which can be received

public interface RecordBlockingReceiver<T>

Synchronously receives records sent from a RecordSender.

Author:
Matthew Stevenson

Method Summary
 int clearRecords()
          Removes any pending records for this receiver.
 T fetchRecord(long timeout)
          Blocks while waiting for a Record.
 

Method Detail

fetchRecord

T fetchRecord(long timeout)
Blocks while waiting for a Record.

Parameters:
timeout - timeout length in milliseconds
Returns:
Record received from a RecordSender

clearRecords

int clearRecords()
Removes any pending records for this receiver. Returns the number of records cleared.

Returns:
number of records cleared


Copyright © 2011-2013. All Rights Reserved.