Example usage for com.liferay.portal.kernel.resiliency.spi.agent.annotation Direction DUPLEX

List of usage examples for com.liferay.portal.kernel.resiliency.spi.agent.annotation Direction DUPLEX

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.resiliency.spi.agent.annotation Direction DUPLEX.

Prototype

Direction DUPLEX

To view the source code for com.liferay.portal.kernel.resiliency.spi.agent.annotation Direction DUPLEX.

Click Source Link

Usage

From source file:com.liferay.samplestruts.servlet.DistributedAttributeServletContextListener.java

License:Open Source License

@Override
public void contextDestroyed(ServletContextEvent servletContextEvent) {
    DistributedRegistry.unregisterDistributed(PageContext.EXCEPTION, Direction.DUPLEX, MatchType.POSTFIX);

    DistributedRegistry.unregisterDistributed("file_name", Direction.DUPLEX, MatchType.POSTFIX);
    DistributedRegistry.unregisterDistributed("x_param", Direction.DUPLEX, MatchType.POSTFIX);
}

From source file:com.liferay.samplestruts.servlet.DistributedAttributeServletContextListener.java

License:Open Source License

@Override
public void contextInitialized(ServletContextEvent servletContextEvent) {
    DistributedRegistry.registerDistributed(PageContext.EXCEPTION, Direction.DUPLEX, MatchType.POSTFIX);

    DistributedRegistry.registerDistributed("file_name", Direction.DUPLEX, MatchType.POSTFIX);
    DistributedRegistry.registerDistributed("x_param", Direction.DUPLEX, MatchType.POSTFIX);
}