示例#1
0
  /** {@inheritDoc} */
  @Override
  public GridFuture<?> addData(Map<K, V> entries) throws IllegalStateException {
    A.notNull(entries, "entries");

    return addData(entries.entrySet());
  }
 /** {@inheritDoc} */
 @Override
 public void setAttribute(Object key, @Nullable Object val) {
   attrs.put(key, val);
 }
 /** {@inheritDoc} */
 @SuppressWarnings("unchecked")
 @Override
 public <K, V> V getAttribute(K key) {
   return (V) attrs.get(key);
 }
 /** {@inheritDoc} */
 @SuppressWarnings({"unchecked"})
 @Override
 public <T> T attribute(String name) {
   return (T) attrs.get(name);
 }