use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.
the class IltProvider method setAttributeMapStringString.
@Override
public Promise<DeferredVoid> setAttributeMapStringString(MapStringString attributeMapStringString) {
DeferredVoid deferred = new DeferredVoid();
this.attributeMapStringString = attributeMapStringString;
attributeMapStringStringChanged(attributeMapStringString);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithMultiplePrimitiveParameters.
/*
* methodToFireBroadcastWithMultiplePrimitiveParameters
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultiplePrimitiveParameters(String[] partitions) {
logger.warn("*************************************************************************");
logger.warn("* IltProvider.methodToFireBroadcastWithMultiplePrimitiveParameters called");
logger.warn("*************************************************************************");
DeferredVoid deferred = new DeferredVoid();
Double doubleOut = 1.1d;
String stringOut = "boom";
fireBroadcastWithMultiplePrimitiveParameters(doubleOut, stringOut, partitions);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.
the class IltProvider method setAttributeArrayOfStringImplicit.
@Override
public Promise<DeferredVoid> setAttributeArrayOfStringImplicit(String[] attributeArrayOfStringImplicit) {
DeferredVoid deferred = new DeferredVoid();
this.attributeArrayOfStringImplicit = attributeArrayOfStringImplicit;
attributeArrayOfStringImplicitChanged(attributeArrayOfStringImplicit);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.
the class IltProvider method methodWithoutOutputParameter.
/*
* methodWithoutOutputParameter
*
* can only resolve or reject since there is no output parameter
*/
@Override
public Promise<DeferredVoid> methodWithoutOutputParameter(Boolean booleanArg) {
logger.warn("*************************************************");
logger.warn("* IltProvider.methodWithoutOutputParameter called");
logger.warn("*************************************************");
DeferredVoid deferred = new DeferredVoid();
if (booleanArg != false) {
logger.warn("methodWithoutOutputParameter: invalid argument booleanArg");
deferred.reject(new ProviderRuntimeException("methodWithoutOutputParameter: received wrong argument"));
return new Promise<DeferredVoid>(deferred);
}
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.
the class IltProvider method methodToFireBroadcastWithSingleByteBufferParameter.
/*
* methodToFireBroadcastWithSingleByteBufferParameter
*/
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithSingleByteBufferParameter(Byte[] byteBufferIn, String[] partitions) {
logger.info("***********************************************************************");
logger.info("* IltProvider.methodToFireBroadcastWithSingleByteBufferParameter called");
logger.info("***********************************************************************");
DeferredVoid deferred = new DeferredVoid();
fireBroadcastWithSingleByteBufferParameter(byteBufferIn, partitions);
deferred.resolve();
return new Promise<DeferredVoid>(deferred);
}
Aggregations