Class FeatureServiceSubscriber
java.lang.Object
org.eblocker.server.common.service.FeatureServiceSubscriber
- All Implemented Interfaces:
FeatureService
Service class to manage some simple eBlocker feature settings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceListeners get notified when features have been reloaded -
Constructor Summary
ConstructorsConstructorDescriptionFeatureServiceSubscriber(DataSource dataSource, PubSubService pubSubService, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener to be notified of reload events on a background thread.booleanbooleanbooleanbooleanvoidreload()
-
Constructor Details
-
FeatureServiceSubscriber
@Inject public FeatureServiceSubscriber(DataSource dataSource, PubSubService pubSubService, Executor executor)
-
-
Method Details
-
reload
public void reload() -
getWebRTCBlockingState
public boolean getWebRTCBlockingState()- Specified by:
getWebRTCBlockingStatein interfaceFeatureService
-
getHTTPRefererRemovingState
public boolean getHTTPRefererRemovingState()- Specified by:
getHTTPRefererRemovingStatein interfaceFeatureService
-
getGoogleCaptivePortalRedirectorState
public boolean getGoogleCaptivePortalRedirectorState()- Specified by:
getGoogleCaptivePortalRedirectorStatein interfaceFeatureService
-
getDntHeaderState
public boolean getDntHeaderState()- Specified by:
getDntHeaderStatein interfaceFeatureService
-
getCompressionMode
- Specified by:
getCompressionModein interfaceFeatureService
-
addListener
Add a listener to be notified of reload events on a background thread.
-