Search in sources :

Example 21 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method setAttributeFireAndForget.

@Override
public Promise<DeferredVoid> setAttributeFireAndForget(Integer attributeFireAndForget) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeFireAndForget = attributeFireAndForget;
    attributeFireAndForgetChanged(attributeFireAndForget);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 22 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method setAttributeUInt8.

@Override
public Promise<DeferredVoid> setAttributeUInt8(Byte attributeUInt8) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeUInt8 = attributeUInt8;
    attributeUInt8Changed(attributeUInt8);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 23 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method methodToFireBroadcastWithSingleStructParameter.

/*
     * methodToFireBroadcastWithSingleStructParameter
     */
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithSingleStructParameter(String[] partitions) {
    logger.warn("*******************************************************************");
    logger.warn("* IltProvider.methodToFireBroadcastWithSingleStructParameter called");
    logger.warn("*******************************************************************");
    DeferredVoid deferred = new DeferredVoid();
    ExtendedStructOfPrimitives extendedStructOfPrimitivesOut = IltUtil.createExtendedStructOfPrimitives();
    fireBroadcastWithSingleStructParameter(extendedStructOfPrimitivesOut, partitions);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) ExtendedStructOfPrimitives(joynr.interlanguagetest.namedTypeCollection2.ExtendedStructOfPrimitives) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 24 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method setAttributeDouble.

@Override
public Promise<DeferredVoid> setAttributeDouble(Double attributeDouble) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeDouble = attributeDouble;
    attributeDoubleChanged(attributeDouble);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 25 with DeferredVoid

use of io.joynr.provider.DeferredVoid in project joynr by bmwcarit.

the class IltProvider method methodToFireBroadcastWithMultipleStructParameters.

/*
     * methodToFireBroadcastWithMultipleStructParameters
     */
@Override
public Promise<DeferredVoid> methodToFireBroadcastWithMultipleStructParameters(String[] partitions) {
    logger.warn("**********************************************************************");
    logger.warn("* IltProvider.methodToFireBroadcastWithMultipleStructParameters called");
    logger.warn("**********************************************************************");
    DeferredVoid deferred = new DeferredVoid();
    BaseStructWithoutElements baseStructWithoutElementsOut = IltUtil.createBaseStructWithoutElements();
    ExtendedExtendedBaseStruct extendedExtendedBaseStructOut = IltUtil.createExtendedExtendedBaseStruct();
    fireBroadcastWithMultipleStructParameters(baseStructWithoutElementsOut, extendedExtendedBaseStructOut, partitions);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) ExtendedExtendedBaseStruct(joynr.interlanguagetest.namedTypeCollection2.ExtendedExtendedBaseStruct) BaseStructWithoutElements(joynr.interlanguagetest.namedTypeCollection2.BaseStructWithoutElements) DeferredVoid(io.joynr.provider.DeferredVoid)

Aggregations

DeferredVoid (io.joynr.provider.DeferredVoid)41 Promise (io.joynr.provider.Promise)36 ProviderRuntimeException (joynr.exceptions.ProviderRuntimeException)7 GlobalDiscoveryEntry (joynr.types.GlobalDiscoveryEntry)5 MapStringString (joynr.interlanguagetest.namedTypeCollection2.MapStringString)4 JoynrException (io.joynr.exceptions.JoynrException)3 Deferred (io.joynr.provider.Deferred)2 PromiseListener (io.joynr.provider.PromiseListener)2 ApplicationException (joynr.exceptions.ApplicationException)2 StructWithStringArray (joynr.interlanguagetest.namedTypeCollection1.StructWithStringArray)2 DiscoveryEntry (joynr.types.DiscoveryEntry)2 AbstractModule (com.google.inject.AbstractModule)1 TypeLiteral (com.google.inject.TypeLiteral)1 GlobalDiscoveryEntryPersisted (io.joynr.capabilities.GlobalDiscoveryEntryPersisted)1 JoynrPropertiesModule (io.joynr.common.JoynrPropertiesModule)1 JoynrMessageScopeModule (io.joynr.context.JoynrMessageScopeModule)1 MultiReturnValuesContainer (io.joynr.dispatcher.rpc.MultiReturnValuesContainer)1 RequestCaller (io.joynr.dispatching.RequestCaller)1 RequestCallerFactory (io.joynr.dispatching.RequestCallerFactory)1 RequestInterpreter (io.joynr.dispatching.rpc.RequestInterpreter)1