Message.kt

  1. package com.hexagontk.messaging

  2. import java.lang.System.currentTimeMillis
  3. import java.lang.Thread.currentThread
  4. import java.time.LocalDateTime

  5. import com.hexagontk.core.Platform

  6. open class Message (
  7.     val timestamp: Long = currentTimeMillis(),
  8.     val dateTime: LocalDateTime = LocalDateTime.now(),
  9.     val hostname: String = Platform.hostName,
  10.     val ip: String = Platform.ip,
  11. //    val jvmId: String = Jvm.id,
  12.     val thread: String = currentThread().name
  13. )