All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.dds.rpc.Requester Maven / Gradle / Ivy

There is a newer version: 1.0_beta2
Show newest version
package org.omg.dds.rpc;

import java.util.concurrent.Future;

import org.omg.dds.core.Duration;
import org.omg.dds.pub.DataWriter;
import org.omg.dds.rpc.Sample;
import org.omg.dds.sub.DataReader;
import org.omg.dds.core.SampleIdentity;

import java.util.concurrent.ExecutorService;

public interface Requester extends ServiceProxy 
{
    public SampleIdentity sendRequest(TReq request);

    public void sendRequestOneway(TReq request);
    
    public Future> 
        sendRequestAsync(TReq request);

    public Future> 
        sendRequestAsync(TReq request, ExecutorService executor);

    public Sample receiveReply(Duration timeout);

    public Sample receiveReply(SampleIdentity relatedRequestId);

    public Sample.Iterator receiveReplies(Duration maxWait);

    public Sample.Iterator receiveReplies(int minCount,
                                                int maxCount,
                                                Duration maxWait);

    public boolean waitForReplies(
        int minCount,
        Duration maxWait);

    public boolean waitForReplies(Duration maxWait);

    public boolean waitForReplies(
        int minCount,
        Duration maxWait,
        SampleIdentity relatedRequestId);

    public Sample takeReply();

    public Sample takeReply(SampleIdentity relatedRequestId);

    public Sample.Iterator takeReplies(int maxCount);

    public Sample.Iterator takeReplies(
        int maxCount, 
        SampleIdentity relatedRequestId);

    public Sample.Iterator takeReplies(
        SampleIdentity relatedRequestId);

    public Sample readReply();

    public Sample readReply( 
        SampleIdentity relatedRequestId);

    public Sample.Iterator readReplies(int maxCount);

    public Sample readReplies(
        int maxCount, 
        SampleIdentity relatedRequestId);

    public Sample readReplies(
        SampleIdentity relatedRequestId);

    boolean receiveNondataSamples(boolean enable);

    public RequesterParams getRequesterParams();
    
    public DataWriter getRequestDataWriter();

    public DataReader getReplyDataReader();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy