Class MessagingLocalContainerInfraService<T extends org.testcontainers.containers.GenericContainer<T>>
java.lang.Object
org.apache.camel.test.infra.messaging.services.MessagingLocalContainerInfraService<T>
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.test.infra.common.services.ContainerService<T>,org.apache.camel.test.infra.common.services.InfrastructureService,MessagingInfraService
public class MessagingLocalContainerInfraService<T extends org.testcontainers.containers.GenericContainer<T>>
extends Object
implements MessagingInfraService, org.apache.camel.test.infra.common.services.ContainerService<T>
A specialized container that can be used to create message broker instances.
-
Constructor Summary
ConstructorsConstructorDescriptionMessagingLocalContainerInfraService(T container, Function<T, String> endpointFunction) -
Method Summary
Modifier and TypeMethodDescriptionGets the default endpoint for the messaging service (ie.: amqp://host:port, or tcp://host:port, etc)voidvoidvoidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.test.infra.common.services.ContainerService
followLogMethods inherited from interface org.apache.camel.test.infra.common.services.InfrastructureService
close
-
Constructor Details
-
MessagingLocalContainerInfraService
-
-
Method Details
-
getContainer
-
defaultEndpoint
Description copied from interface:MessagingInfraServiceGets the default endpoint for the messaging service (ie.: amqp://host:port, or tcp://host:port, etc)- Specified by:
defaultEndpointin interfaceMessagingInfraService- Returns:
- the endpoint URL as a string in the specific format used by the service
-
registerProperties
public void registerProperties()- Specified by:
registerPropertiesin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.apache.camel.test.infra.common.services.InfrastructureService
-