获取当前聊天对话的属性

@return
@since 3.0
494458
public Object getAttribute(String key) {
    Object value;
    if (pendingAttributes.containsKey(key)) {
      value = pendingAttributes.get(key);
    } else {
      value = attributes.get(key);
    }
    return value;
  }
1123998
public com.google.type.TimeOfDayOrBuilder getTimeValueOrBuilder() {
    if (typeCase_ == 6) {
      return (com.google.type.TimeOfDay) type_;
    }
    return com.google.type.TimeOfDay.getDefaultInstance();
  }
173062
public com.google.type.TimeOfDay getTimeValue() {
    if (typeCase_ == 6) {
      return (com.google.type.TimeOfDay) type_;
    }
    return com.google.type.TimeOfDay.getDefaultInstance();
  }
346408
public Calendar getCalendar() {
        if (calendar == null) {
            return guessCalendar();
        }
        Calendar temp = (Calendar) calendar.clone(); // clone for safety
        temp.setTimeZone(getTimeZone());
        temp.setTimeInMillis(System.currentTimeMillis());
        return temp;
    }
24679
public com.google.type.TimeOfDay getTime() {
    return time_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : time_;
  }
224703
public static Date getRoundedHourCurDate() {

        Calendar cal = GregorianCalendar.getInstance();

        cal.clear(Calendar.MINUTE);
        cal.clear(Calendar.SECOND);
        cal.clear(Calendar.MILLISECOND);

        return cal.getTime();

    }
1161405
public com.google.type.DayOfWeek getDayOfWeekValue() {
    if (typeCase_ == 8) {
      @SuppressWarnings("deprecation")
      com.google.type.DayOfWeek result =
          com.google.type.DayOfWeek.valueOf((java.lang.Integer) type_);
      return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result;
    }
    return com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED;
  }
928738
public Calendar getStart() {
		Calendar cal = Calendar.getInstance();
		cal.setTimeInMillis(start);
		return cal;
	}
357675
public LocalDateTime getStartDateTime() {
        if (startDateTime == null) {
            startDateTime = LocalDateTime.of(getStartDate(), getStartTime());
        }

        return startDateTime;
    }
117511
public Calendar getTime() {
        Calendar result = Calendar.getInstance();
        result.set(Calendar.HOUR_OF_DAY, hour);
        result.set(Calendar.MINUTE, minute);
        return result;
    }
423804
public Versioned<E> previous() {
        if(hasPrevious()) {
            E resultValue = _previousNode.getValue().getValue();
            _lastId = _previousNode.getValue().getId();
            _lastCall = LastCall.PREVIOUS;
            _nextNode = _previousNode;
            _isNextSet = true;
            _isPreviousSet = false;
            return new Versioned<E>(resultValue, _previousNode.getVersion());
        } else {
            throw new NoSuchElementException();
        }
    }
88530
public static String getCurrentDate() {
        synchronized (FORMAT) {
            long now = System.currentTimeMillis();
            return FORMAT.format(new Date(now));
        }
    }
1179541
public static int todayYYMMDDHHmm() {
        java.time.LocalDateTime today = java.time.LocalDateTime.now();
        return today.getYear() % 100 * 100_00_00_00 + today.getMonthValue() * 100_00_00 + today.getDayOfMonth() * 100_00
            + today.getHour() * 100 + today.getMinute();
    }
162939
public int length() {

        int days = 1;
        Weekday current = this.start;

        while (current != this.end) {
            days++;
            current = current.next();
        }

        return days;

    }
527473
public boolean ack() {
        lock.lock();
        try {
            Long result = queue.poll();
            if (result != null) {// 添加到历史记录里，避免重复
                history.put(result, PRESENT);
            }
            return result != null;
        } finally {
            lock.unlock();
        }
    }
632921
@Override
	public ThriftConnection<T> pollConnection() {
		ThriftConnection<T> result;
		if (pool.getThriftServerCount() == 0) {
			throw new IllegalStateException("当前无可用连接服务器");
		}
		int partition = (int) (Thread.currentThread().getId() % this.pool.thriftServerCount);

		ThriftConnectionPartition<T> thriftConnectionPartition = this.pool.partitions.get(partition);

		result = thriftConnectionPartition.poolFreeConnection();
		if (result == null) {
			for (int i = 0; i < this.pool.thriftServerCount; i++) {
				if (i == partition) {
					continue;
				}
				result = this.pool.partitions.get(i).poolFreeConnection();
				if (result != null) {
					thriftConnectionPartition = this.pool.partitions.get(i);
					break;
				}
			}
		}

		if (!thriftConnectionPartition.isUnableToCreateMoreTransactions()) {
			this.pool.maybeSignalForMoreConnections(thriftConnectionPartition);
		}
		return result;
	}
1169974
public Date getDate() {
        if (date == null) {
            if (getContext() != null) {
                date = context.now();
            }
        }
        return date;
    }