com.vmware.transport.core.interfaces.BusServiceEnabled Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transport Show documentation
Show all versions of transport Show documentation
Transport is a full stack, simple, fast, expandable application event bus for your applications. It provides a standardized and simple API, implemented in multiple languages, to allow any individual component inside your applications to talk to one another. This is the Java implementation of the Transport library.
The newest version!
/*
* Copyright 2019-2020 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
*
*/
package com.vmware.transport.core.interfaces;
/**
* Bus Services should be able to be enabled and disabled. Online and Offline translate
* to listening or not listening on the service channel. The service however is still there and can switch
* state on demand.
*/
public interface BusServiceEnabled {
/**
* Switch a service online, start listening on the service channel.
*/
void online();
/**
* Switch a service offline, stop listening on the service channel.
*/
void offline();
}