- java.lang.Object
-
- javax.resource.spi.work.HintsContext
-
- All Implemented Interfaces:
- Serializable, WorkContext
public class HintsContext extends Object implements WorkContext
A standardWorkContext
that allows aWork
instance to propagate quality-of-service (QoS) hints about theWork
to theWorkManager
.- Since:
- 1.6
- Version:
- Java EE Connector Architecture 1.6
- See Also:
WorkContextProvider
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description protected String
description
static String
LONGRUNNING_HINT
protected String
name
static String
NAME_HINT
-
Constructor Summary
Constructors Constructor and Description HintsContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getDescription()
Get the brief description of the role played by theWorkContext
and any other related debugging information.Map<String,Serializable>
getHints()
String
getName()
Get the associated name of theWorkContext
.void
setDescription(String description)
Set a brief description of the role played by the instance of HintsContext and any other related debugging information.void
setHint(String hintName, Serializable value)
Set a Hint and a related value.void
setName(String name)
Set the associated name of the HintsContext.
-
-
-
Field Detail
-
NAME_HINT
public static final String NAME_HINT
- See Also:
- Constant Field Values
-
LONGRUNNING_HINT
public static final String LONGRUNNING_HINT
- See Also:
- Constant Field Values
-
description
protected String description
-
name
protected String name
-
-
Method Detail
-
getDescription
public String getDescription()
Get the brief description of the role played by theWorkContext
and any other related debugging information. This could be used by the WorkManager and the resource adapter for debugging purposes.- Specified by:
getDescription
in interfaceWorkContext
- Returns:
- the associated description of the
WorkContext
-
getName
public String getName()
Get the associated name of theWorkContext
. This could be used by the WorkManager and the resource adapter for debugging purposes.- Specified by:
getName
in interfaceWorkContext
- Returns:
- the associated name of the
WorkContext
-
setDescription
public void setDescription(String description)
Set a brief description of the role played by the instance of HintsContext and any other related debugging information. This could be used by the resource adapter and the WorkManager for logging and debugging purposes.
-
setName
public void setName(String name)
Set the associated name of the HintsContext. This could be used by the resource adapter and the WorkManager for logging and debugging purposes.
-
setHint
public void setHint(String hintName, Serializable value)
Set a Hint and a related value. The hintName must be non-Null. Standard HintNames are defined in the Connector specification. Use of "javax.resource." prefixed hintNames are reserved for use by the Connector specification.
-
getHints
public Map<String,Serializable> getHints()
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/resource/spi/work/HintsContext.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.