grinda.impl.tuplespace
Interface BlockingOperationProvider


public interface BlockingOperationProvider

Interface implemented by those object providing the blocking semantic of the tuple space

Version:
1.0
Author:
Sirio Capizzi

Method Summary
 void addListener(OperationType operation, InternalTuple templ, java.lang.String spaceName, URI l)
          Adds a listener for a blocking operation
 boolean handle(InternalTuple t, java.lang.String spaceName)
          Handles an new tuple that would be inserted in the space.
 

Method Detail

handle

boolean handle(InternalTuple t,
               java.lang.String spaceName)
Handles an new tuple that would be inserted in the space. This methods tells the caller if his insertion can be done or not, according to the pending blocking operation.

Parameters:
t - the tuple
spaceName - the spaceName in which inserting the tuple
Returns:
true if the insertion can be done false otherwise

addListener

void addListener(OperationType operation,
                 InternalTuple templ,
                 java.lang.String spaceName,
                 URI l)
Adds a listener for a blocking operation

Parameters:
operation - the operation type
templ - the template
spaceName - the spaceName in which inserting the tuple
l - the uri of the listener


Copyright © 2006 Sirio Capizzi. All Rights Reserved.