org.fourthline.cling.mock
Class MockUpnpServiceConfiguration
java.lang.Object
org.fourthline.cling.DefaultUpnpServiceConfiguration
org.fourthline.cling.mock.MockUpnpServiceConfiguration
- All Implemented Interfaces:
- UpnpServiceConfiguration
@Alternative
public class MockUpnpServiceConfiguration
- extends DefaultUpnpServiceConfiguration
- Author:
- Christian Bauer
Methods inherited from class org.fourthline.cling.DefaultUpnpServiceConfiguration |
createDatagramIO, createDatagramProcessor, createDeviceDescriptorBinderUDA10, createGENAEventProcessor, createMulticastReceiver, createNamespace, createNetworkAddressFactory, createServiceDescriptorBinderUDA10, createSOAPActionProcessor, createStreamClient, createStreamServer, getAliveIntervalMillis, getAsyncProtocolExecutor, getDatagramIOExecutor, getDatagramProcessor, getDefaultExecutor, getDescriptorRetrievalHeaders, getDeviceDescriptorBinderUDA10, getEventSubscriptionHeaders, getExclusiveServiceTypes, getGenaEventProcessor, getMulticastReceiverExecutor, getNamespace, getRegistryListenerExecutor, getRegistryMaintenanceIntervalMillis, getRemoteDeviceMaxAgeSeconds, getServiceDescriptorBinderUDA10, getSoapActionProcessor, getStreamServerExecutor, getSyncProtocolExecutor, isReceivedSubscriptionTimeoutIgnored, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maintainsRegistry
protected final boolean maintainsRegistry
multiThreaded
protected final boolean multiThreaded
MockUpnpServiceConfiguration
public MockUpnpServiceConfiguration()
- Does not maintain registry, single threaded execution.
MockUpnpServiceConfiguration
public MockUpnpServiceConfiguration(boolean maintainsRegistry)
- Single threaded execution.
MockUpnpServiceConfiguration
public MockUpnpServiceConfiguration(boolean maintainsRegistry,
boolean multiThreaded)
isMaintainsRegistry
public boolean isMaintainsRegistry()
isMultiThreaded
public boolean isMultiThreaded()
createNetworkAddressFactory
protected NetworkAddressFactory createNetworkAddressFactory(int streamListenPort)
- Overrides:
createNetworkAddressFactory
in class DefaultUpnpServiceConfiguration
getRegistryMaintainerExecutor
public Executor getRegistryMaintainerExecutor()
- Specified by:
getRegistryMaintainerExecutor
in interface UpnpServiceConfiguration
- Overrides:
getRegistryMaintainerExecutor
in class DefaultUpnpServiceConfiguration
- Returns:
- The executor which runs the background thread for maintainting the registry.
createDefaultExecutor
protected Executor createDefaultExecutor()
- Overrides:
createDefaultExecutor
in class DefaultUpnpServiceConfiguration
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.