org.wildfly.common.annotation.NotNull类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.wildfly.common.annotation.NotNull类的一些代码示例,展示了NotNull类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NotNull类的具体详情如下:
包路径:org.wildfly.common.annotation.NotNull
类名称:NotNull

NotNull介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

/**
 * Get the method invocation parameters.
 *
 * @return the method invocation parameters (must not be {@code null})
 */
@NotNull
Object[] getParameters();

代码示例来源:origin: wildfly/wildfly

/**
 * Get the EJB locator of the request.  This contains the same identifier as is returned with
 * {@link #getEJBIdentifier()}, but of a type corresponding to the EJB type, and with a resolved EJB class
 * and affinity.
 *
 * @return the EJB locator (must not be {@code null})
 */
@NotNull
EJBLocator<?> getEJBLocator();

代码示例来源:origin: wildfly/wildfly

/**
 * Put a resource on to the given transaction.
 *
 * @param transaction the transaction (not {@code null})
 * @param key the key to store under (not {@code null})
 * @param value the value to store
 * @throws IllegalArgumentException if the transaction does not belong to this provider
 */
void putResource(@NotNull Transaction transaction, @NotNull Object key, Object value) throws IllegalArgumentException;

代码示例来源:origin: wildfly/wildfly

/**
 * Get the unique node name of this provider.
 *
 * @return the node name (must not be {@code null})
 */
@NotNull
String getNodeName();

代码示例来源:origin: wildfly/wildfly

/**
 * Attempt to derive a node name from an XID.  If the XID is not in a recognized format, {@code null} is returned.
 *
 * @param xid the XID (not {@code null})
 * @return the originating node name
 */
default String getNameFromXid(@NotNull Xid xid) {
  return null;
}

代码示例来源:origin: wildfly/wildfly

@NotNull
  public String getNodeName() {
    return "<<none>>";
  }
};

代码示例来源:origin: wildfly/wildfly

/**
 * Receive and execute a session open request.  An invocation may be cancelled; the returned handle may be used
 * by the protocol implementation when a cancellation request is received by the server.
 *
 * @param sessionOpenRequest the session open request (not {@code null})
 * @return a handle which may be used to request cancellation of the invocation (must not be {@code null})
 */
@NotNull
CancelHandle receiveSessionOpenRequest(@NotNull SessionOpenRequest sessionOpenRequest);

代码示例来源:origin: wildfly/wildfly

/**
 * Get a list of problems that occurred during discovery.
 *
 * @return a list of problems that occurred during discovery (not {@code null})
 */
@NotNull
List<Throwable> getProblems();

代码示例来源:origin: wildfly/wildfly

/**
   * Initiate a recovery scan.
   *
   * @param flag one of {@link XAResource#TMSTARTRSCAN}, {@link XAResource#TMNOFLAGS}, or {@link XAResource#TMENDRSCAN}
   * @param parentName the name of the node to recover on behalf of, or {@code null} for all
   * @return the array of recovered XIDs (may be {@link SimpleXid#NO_XIDS}, must not be {@code null})
   * @throws XAException if the operation fails for some reason
   */
  @NotNull
  Xid[] recover(int flag, String parentName) throws XAException;
}

代码示例来源:origin: wildfly/wildfly

@NotNull
  public List<Throwable> getProblems() {
    return problems;
  }
}

代码示例来源:origin: wildfly/wildfly

/**
 * Get the transaction manager.
 *
 * @return the transaction manager (must not be {@code null})
 */
@NotNull
TransactionManager getTransactionManager();

代码示例来源:origin: wildfly/wildfly

/**
 * Get the XA importer.
 *
 * @return the XA importer (must not be {@code null})
 */
@NotNull
XAImporter getXAImporter();

代码示例来源:origin: wildfly/wildfly

/**
 * Determine whether the given transaction was imported or originated locally.
 *
 * @param transaction the transaction to test (not {@code null})
 * @return {@code true} if the transaction was imported, or {@code false} if it was created locally
 * @throws IllegalArgumentException if the transaction does not belong to this provider
 */
boolean isImported(@NotNull Transaction transaction) throws IllegalArgumentException;

代码示例来源:origin: wildfly/wildfly

/**
 * Locally roll back the given provider transaction.  A given provider transaction will only be rolled back by this
 * method or {@link SubordinateTransactionControl#rollback()}.
 *
 * @param transaction the transaction (not {@code null})
 * @throws IllegalStateException if the local commit operation throws this exception
 * @throws SystemException if the local commit operation throws this exception
 */
void rollbackLocal(@NotNull Transaction transaction) throws IllegalStateException, SystemException;

代码示例来源:origin: wildfly/wildfly

/**
 * Get the transaction ID of the given transaction.
 *
 * @param transaction the transaction (not {@code null})
 * @return the transaction ID (must not be {@code null})
 */
@NotNull Xid getXid(@NotNull Transaction transaction);

代码示例来源:origin: wildfly/wildfly

/**
 * Register a cluster topology listener.  This is used by legacy protocols to transmit cluster updates to old clients.
 *
 * @param clusterTopologyListener the cluster topology listener (not {@code null})
 * @return a handle which may be used to cancel the topology listener registration (must not be {@code null})
 */
@NotNull
ListenerHandle registerClusterTopologyListener(@NotNull ClusterTopologyListener clusterTopologyListener);

代码示例来源:origin: wildfly/wildfly

/**
 * Get the context manager for this object.  The implementation of this method normally should return a constant
 * instance.
 *
 * @return the context manager (must not be {@code null})
 */
@NotNull
ContextManager<C> getInstanceContextManager();

代码示例来源:origin: wildfly/wildfly

/**
   * Create or acquire an MXBean instance for this thread pool.  Note that the thread pool itself will not
   * do anything in particular to register (or unregister) the MXBean with a JMX server; that is the caller's
   * responsibility.
   *
   * @return the MXBean instance (must not be {@code null})
   */
  @NotNull
  StandardThreadPoolMXBean getThreadPoolMXBean();
}

代码示例来源:origin: wildfly/wildfly

/**
 * Acquire a list of all unresolved subordinate transactions from the location associated with this provider.
 *
 * @param flag the recovery flag
 * @param parentName the parent node name
 * @return the (possibly empty) XID array
 * @throws XAException if an error occurs
 */
@NotNull
Xid[] recover(int flag, String parentName) throws XAException;

代码示例来源:origin: wildfly/wildfly

/**
 * Get the EJB method locator.
 *
 * @return the EJB method locator (must not be {@code null})
 */
@NotNull
EJBMethodLocator getMethodLocator();

相关文章

NotNull类方法