Search in sources :

Example 11 with DeferredVoid

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

the class DummyCapabilitiesDirectory method remove.

@Override
public Promise<DeferredVoid> remove(String participantId) {
    DeferredVoid deferred = new DeferredVoid();
    logger.info("!!!!!!!!!!!!!!!removeCapabilities");
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 12 with DeferredVoid

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

the class DummyCapabilitiesDirectory method add.

@Override
public Promise<DeferredVoid> add(DiscoveryEntry discoveryEntry) {
    DeferredVoid deferred = new DeferredVoid();
    registeredCapabilities.add(CapabilityUtils.convertToDiscoveryEntryWithMetaInfo(true, discoveryEntry));
    notifyCapabilityAdded(discoveryEntry);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 13 with DeferredVoid

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

the class IltProvider method setAttributeByteBuffer.

@Override
public Promise<DeferredVoid> setAttributeByteBuffer(Byte[] attributeByteBuffer) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeByteBuffer = attributeByteBuffer;
    attributeByteBufferChanged(attributeByteBuffer);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 14 with DeferredVoid

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

the class IltProvider method setAttributeEnumeration.

@Override
public Promise<DeferredVoid> setAttributeEnumeration(Enumeration attributeEnumeration) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeEnumeration = attributeEnumeration;
    attributeEnumerationChanged(attributeEnumeration);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) DeferredVoid(io.joynr.provider.DeferredVoid)

Example 15 with DeferredVoid

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

the class IltProvider method setAttributeExtendedExtendedBaseStruct.

@Override
public Promise<DeferredVoid> setAttributeExtendedExtendedBaseStruct(ExtendedExtendedBaseStruct attributeExtendedExtendedBaseStruct) {
    DeferredVoid deferred = new DeferredVoid();
    this.attributeExtendedExtendedBaseStruct = attributeExtendedExtendedBaseStruct;
    attributeExtendedExtendedBaseStructChanged(attributeExtendedExtendedBaseStruct);
    deferred.resolve();
    return new Promise<DeferredVoid>(deferred);
}
Also used : Promise(io.joynr.provider.Promise) 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