Tabnine Logo
StrictMaxPoolWriteHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
StrictMaxPoolWriteHandler
in
org.jboss.as.ejb3.subsystem

Best Java code snippets using org.jboss.as.ejb3.subsystem.StrictMaxPoolWriteHandler (Showing top 5 results out of 315)

origin: wildfly/wildfly

@Override
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
                    ModelNode newValue, ModelNode currentValue, HandbackHolder<Void> handbackHolder) throws OperationFailedException {
  final ModelNode model = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
  applyModelToRuntime(context, operation, attributeName, model);
  return false;
}
origin: wildfly/wildfly

@Override
public void registerAttributes(ManagementResourceRegistration resourceRegistration) {
  Collection<AttributeDefinition> ads = ATTRIBUTES.values();
  OperationStepHandler osh = new StrictMaxPoolWriteHandler(ads);
  for (AttributeDefinition attr : ads) {
    resourceRegistration.registerReadWriteAttribute(attr, null, osh);
  }
  resourceRegistration.registerReadOnlyAttribute(DERIVED_SIZE, new StrictMaxPoolDerivedSizeReadHandler());
}
origin: wildfly/wildfly

  @Override
  protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
                     ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException {
    final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone();
    restored.get(attributeName).set(valueToRestore);
    applyModelToRuntime(context, operation, attributeName, restored);
  }
}
origin: org.jboss.as/jboss-as-ejb3

@Override
protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
                    ModelNode newValue, ModelNode currentValue, HandbackHolder<Void> handbackHolder) throws OperationFailedException {
  final ModelNode model = context.readResource(PathAddress.EMPTY_ADDRESS).getModel();
  applyModelToRuntime(context, operation, attributeName, model);
  return false;
}
origin: org.jboss.as/jboss-as-ejb3

  @Override
  protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName,
                     ModelNode valueToRestore, ModelNode valueToRevert, Void handback) throws OperationFailedException {
    final ModelNode restored = context.readResource(PathAddress.EMPTY_ADDRESS).getModel().clone();
    restored.get(attributeName).set(valueToRestore);
    applyModelToRuntime(context, operation, attributeName, restored);
  }
}
org.jboss.as.ejb3.subsystemStrictMaxPoolWriteHandler

Javadoc

Handles the "write-attribute" operation for a strict-max-bean-instance-pool resource.

Most used methods

  • applyModelToRuntime
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now