org.wildfly.common.annotation.NotNull.<init>()方法的使用及代码示例

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

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

NotNull.<init>介绍

暂无

代码示例

代码示例来源: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 current local transaction context.  The default context does not support initiating new transactions.
 *
 * @return the current local transaction context (not {@code null})
 */
@NotNull
public static LocalTransactionContext getCurrent() {
  return PRIVILEGED_SUPPLIER.get();
}

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

/**
   * Return an exception explaining that the caller's method is not supported.
   *
   * @return the exception
   */
  @NotNull
  public static UnsupportedOperationException unsupported() {
    final StackTraceElement element = new Throwable().getStackTrace()[1];
    return CommonMessages.msg.unsupported(element.getMethodName(), element.getClassName());
  }
}

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

public void updateStrongAffinity(@NotNull final Affinity affinity) {
  Assert.checkNotNullParam("affinity", affinity);
  if (affinity instanceof ClusterAffinity) {
    strongAffinityUpdate = (ClusterAffinity) affinity;
  }
}

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

public void updateWeakAffinity(@NotNull final Affinity affinity) {
    Assert.checkNotNullParam("affinity", affinity);
    if (affinity instanceof NodeAffinity) {
      weakAffinityUpdate = (NodeAffinity) affinity;
    }
  }
}

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

public Object putResourceIfAbsent(@NotNull final Transaction transaction, @NotNull final Object key, final Object value) throws IllegalArgumentException {
  synchronized (resourceLock) {
    Object existing = getResource(transaction, key);
    if (existing != null) {
      return existing;
    }
    putResource(transaction, key, value);
    return null;
  }
}

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

public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException {
  // this is silly but for some reason they've locked this API up tight
  try {
    registerSynchronizationImple.invoke((TransactionImple) transaction, new SynchronizationImple(sync, true));
  } catch (RuntimeException | Error e) {
    throw e;
  } catch (Throwable t) {
    throw Log.log.unexpectedFailure(t);
  }
}

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

public boolean getRollbackOnly(@NotNull final Transaction transaction) throws IllegalArgumentException {
  try {
    return transaction.getStatus() == Status.STATUS_MARKED_ROLLBACK;
  } catch (SystemException e) {
    throw Log.log.unexpectedFailure(e);
  }
}

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

/**
 * Attempt to import a transaction, which subsequently may be controlled by its XID or by the returned handle.
 *
 * @param xid the XID of the transaction to import (must not be {@code null})
 * @param timeout the transaction timeout to use, if new
 * @return the transaction import result (not {@code null})
 * @throws XAException if a problem occurred while importing the transaction
 */
@NotNull
public ImportResult<LocalTransaction> findOrImportTransaction(Xid xid, int timeout) throws XAException {
  return Assert.assertNotNull(findOrImportTransaction(xid, timeout, false));
}

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

@NotNull
public String getNodeName() {
  final String nodeIdentifier = arjPropertyManager.getCoreEnvironmentBean().getNodeIdentifier();
  if (nodeIdentifier == null) {
    throw Log.log.noLocalTransactionProviderNodeName();
  }
  return nodeIdentifier;
}

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

@NotNull
public Xid[] recover(final int flag, final String parentName) throws XAException {
  final ConnectionPeerIdentity peerIdentity = getPeerIdentityXA();
  return getOperationsXA(peerIdentity.getConnection()).recover(flag, parentName, peerIdentity);
}

相关文章